import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import My from '../views/my/My.vue'
import Help from '../views/my/Help.vue'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
	meta: {
	      footShow: true, // true显示，false隐藏
	}
  },
  {
    path: '/my',
    name: 'My',
    component: My,
	meta: {
	      footShow: true, // true显示，false隐藏
	}
  },
  {
    path: '/help',
    name: 'Help',
    component: Help,
  	meta: {
  	      footShow: false, // true显示，false隐藏
  	}
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue'),
	meta: {
	      footShow: true, // true显示，false隐藏
	}
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
